﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Guest.Master" AutoEventWireup="true"
    CodeBehind="RequestsMetrics.aspx.cs" Inherits="ScrumLite.WebUx.RequestsViews.RequestsMetrics" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        <%=ViewData.ProjectName%></h1>
    <hr />
    <h2>
        Requests metrics</h2>
    <div class="formCharts">
        <table>
            <tr>
                <td>
                    <img src='<%=ViewData.GChartRequestsByStatusPie %>' alt='Data chart' />
                </td>
                <td>
                    <img src='<%=ViewData.GChartRequestsLine %>' alt='Data chart' />
                </td>
            </tr>
        </table>
        <h2>
            Requests by Status by WorkArea</h2>
        <table>
            <%
                int columnCounter = 0;
                foreach (string chartUrl in ViewData.GChartRequestsByStatusByWorkAreaBars)
                {

            %>
            <% 
                if ((columnCounter % 2) == 0)
                { 
            %>
            <tr>
                <%
                    }
                %>
                <td>
                    <img src='<%=chartUrl %>' alt='Data chart' />
                </td>
                <% 
                    if ((columnCounter % 2) != 0)
                    { 
                %>
            </tr>
            <%
                }
            %>
            <%
                columnCounter++;
                } 
            %>
        </table>
    </div>
</asp:Content>
